<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var student = {
            name: 'zhangsan',
            age: 23,
            study: function () {
                console.log(this.name + ', ' + this.age);
            }
        };
        console.log(student.name);
        student.study();
    </script>
</head>
<body>

</body>
</html>